package com.zhejiangzhengyuan.municipal_common.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhejiangzhengyuan.municipal_common.entity.Device;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhejiangzhengyuan.municipal_common.entity.DevicePo;
import com.zhejiangzhengyuan.municipal_common.entity.vo.DeviceVo;
import com.zhejiangzhengyuan.municipal_common.response.ResponseVo;


import java.util.List;

/**
 * <p>
 * 物联网设备表，用于存储物联网监测设备数据 服务类
 * </p>
 *
 * @author linju
 * @since 2019-11-22
 */

public interface DeviceService extends IService<Device> {


    /**
     * 添加设备
     * @param device 设备
     */
    ResponseVo saveDevice(Device device);

    /**
     *更新设备
     * @param device 设备

     */
    int updateDevice(Device device);

    /**
     * 查询泵站设备列表
     */
    ResponseVo selectPumpDevice(Integer pageNo, Integer pageSize,String pumpDeviceType);

    /**
     * 查询设备跟设施
     */
    Page<DeviceVo> selectAllDevice(Page<DeviceVo> page,String deviceType);

    /**
     * 供导入excel使用 根据设备号，修改其物探点号和geometry
     */
    void updateGeoByName(DevicePo device);

    List<DeviceVo> getDeviceAndFacility(String deviceType);

    ResponseVo selectWarnProblemsCharts(int month);

    ResponseVo getWaterValueByDeviceCode(String deviceCode);
}
